package org.example;

import javax.swing.*;

public class Main {
    public static void main(String[] args) {
        SwingUtilities.invokeLater(() -> {
            try {
                // 设置UI风格为系统风格
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

                // 显示登录窗口
                new LoginFrame().setVisible(true);
            } catch (Exception e) {
                e.printStackTrace();
                JOptionPane.showMessageDialog(
                        null,
                        "程序启动失败: " + e.getMessage(),
                        "系统错误",
                        JOptionPane.ERROR_MESSAGE
                );
            }
        });
    }
}